{extend name="index"/}
{block name="title"}奖品设置  - 后台管理{/block}
{block name="content"}
<section class="Hui-article-box">
    <nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> <a href="{:url('Index/index')}">首页</a> <span class="c-gray en">&gt;</span> 系统管理中心 <span class="c-gray en">&gt;</span> 奖品设置<a id="btn-refresh" class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
    <div class="Hui-article">
        <article class="cl pd-20">
            <div class="text-c">
                奖品中奖概率总共是100  <span style="color:red;">未中奖的概率 = [ 100 - (一等奖概率) - (二等奖概率) - (三等奖概率) ]</span>
            </div>
            <div class="mt-20">
                <table class="table table-border table-bordered table-hover table-bg table-sort">
                    <thead>
                    <tr class="text-l">
                        <th width="40">ID</th>
                        <th width="80">标题</th>
                        <th width="80">奖品名称</th>
                        <th width="50">中奖概率</th>
                        <th width="40">操作</th>
                    </tr>
                    </thead>
                    {volist name="list" id="val"}
                    <tbody>
                    <tr class="text-l">
                        <td>{$val['id']}</td>
                        <td>{$val['title']}</td>
                        <td>{$val['content']}</td>
                        <td>{$val['odds']}%</td>
                        <td class="td-manage">
                            <a title="编辑" href="javascript:;" onclick="edit('编辑','editprize.html','{$val['id']}','','500')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6df;</i></a>
                        </td>
                    </tr>
                    </tbody>
                    {/volist}
                </table>
            </div>
        </article>
    </div>
</section>
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript">
    /*编辑*/
    function edit(title,url,id,w,h){
        layer_show_id(title,url,id,w,h);
    }
</script>
<!--/请在上方写此页面业务相关的脚本-->
{/block}